var mongoose = require("mongoose");
var Schema = mongoose.Schema;

const TypeSchema = new Schema(
  {
    name: {
      type: String,
      default: "",
    },
    date: {
      type: Date,
      default: Date.now(),
    },
  },
  {
    versionKey: false,
  }
);
module.exports = User = mongoose.model("types", TypeSchema);
